package io.gitee.dqcer.mcdull.uac.provider.web.appointment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.gitee.dqcer.mcdull.uac.provider.common.annotation.Excel;
import io.gitee.dqcer.mcdull.uac.provider.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 预约管理对象 car_appointment
 * 
 * @author ruoyi
 * @date 2023-12-10
 */
public class CarAppointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约id，主键，自增，整型 */
    private Long appointmentId;

    /** 预约用户 */
    @Excel(name = "预约用户")
    private Long userId;

    /** 预约服务类型 */
    @Excel(name = "预约服务类型")
    private String serviceType;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentTime;

    /** 记录创建的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录最后一次更新的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录最后一次更新的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setAppointmentId(Long appointmentId) 
    {
        this.appointmentId = appointmentId;
    }

    public Long getAppointmentId() 
    {
        return appointmentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setServiceType(String serviceType) 
    {
        this.serviceType = serviceType;
    }

    public String getServiceType() 
    {
        return serviceType;
    }
    public void setAppointmentTime(Date appointmentTime) 
    {
        this.appointmentTime = appointmentTime;
    }

    public Date getAppointmentTime() 
    {
        return appointmentTime;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("appointmentId", getAppointmentId())
            .append("userId", getUserId())
            .append("serviceType", getServiceType())
            .append("appointmentTime", getAppointmentTime())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
